<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
	<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<form name="formedituser" action="EditUser.do" method=POST>
<input type="hidden" name="memberid" value="${requestScope.user.memberid}" /> 
<input type="hidden" name="password" value="${requestScope.user.password}" />
<div class="boxeditadmin">
	<div class="paddingboxadmin">
		<div class="onerowedit">
			<a href="Users.do"><img src="images/backbt.png" alt="#" border="0" /></a>
		</div>
		<div class="onerowedit">
			<h1>EDIT USER</h1>
		</div>
		<div class="onerowedit">
			<span class="formlablerow"> First Name:</span><input class="inputadmin" type ="text" name="firstname"
						value="${requestScope.user.firstname}" />
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Last Name:</span><input class="inputadmin"  type ="text" name="lastname"
						value="${requestScope.user.lastname }" />   
		</div>
		<div class="onerowedit">
			<span class="formlablerow">E-Mail Address:</span><input class="inputadmin"  type ="text" name="email"
						value="${requestScope.user.email }" />  
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Phone Number:</span><input class="inputadmin"  class="inputadmin"  type ="text" name="phonenumber"
						value="${requestScope.user.phonenumber }" />
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Zipcode:</span><input class="inputadmin"  type ="text" name="zipcode"
						value="${requestScope.user.zipcode }"/>
		</div>
<!-- 		<div class="onerowedit"> -->
<!-- 			<span class="formlablerow">Enable:</span><input class="inputadmin"  type ="text" name="enable" -->
<%-- 						value="${requestScope.user.enable }"/> --%>
<!-- 		</div> -->
		<div class="onerowedit">
			<span class="formlablerow">Enable:</span>
			<select name ="enable" class="inputadmin">
				<option value = "true"
				<c:if test ="${'true' == requestScope.user.enable }">
					selected="selected"
				</c:if>
				> true</option>
				<option value = "false"
				<c:if test ="${'false' == requestScope.user.enable }">
					selected="selected"
				</c:if>
				> false</option>
			</select>
		</div>
<!-- 		<div class="onerowedit"> -->
<!-- 			<span class="formlablerow">Userroles:</span><input class="inputadmin"  type ="text" name="userroles" -->
<%-- 						value="${requestScope.user.userroles.roles }"/> --%>
<!-- 		</div> -->
		<div class="onerowedit">
			<span class="formlablerow">Userroles:</span>
			<select name ="userroles" class="inputadmin">
				<option value = "ROLE_ADMIN"
				<c:if test ="${'ROLE_ADMIN' == requestScope.user.userroles.roles}">
					selected="selected"
				</c:if>
				> ROLE_ADMIN</option>
				<option value = "ROLE_USER"
				<c:if test ="${'ROLE_USER' == requestScope.user.userroles.roles}">
					selected="selected"
				</c:if>
				> ROLE_USER</option>
			</select>
		</div>
		<div class="onerowedit" align="center">
			<input class="submitbuttonadmin" type ="submit" value = "Submit" name ="Submit"/>
		</div>
	</div>                  
</div>	
</form>